﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BmChangeList.aspx.cs" Inherits="RN.ERP.Web.Exam.BmChangeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=PageTitle %></title>
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/style_msg.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/iepngfix_tilebg.js"></script>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link rel="Stylesheet" type="text/css" href="../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script type="text/javascript">
        function OpenAlert(text) {
            $.ligerDialog.warn(text);
            return false;
        }
        function ChangeEmp(id, name, guid, subid) {
            var url = "../Exam/SelectEmps.aspx?type=" + $("#hidType").val() + "&id=" + id + "&name=" + escape(name) + "&guid=" + guid + "&subid=" + subid;
            var title = "考试报名信息";
            $.ligerDialog.open({ url: url, width: 600, height: 600, title: title, buttons: [{ text: '关闭', onclick: function (item, dialog) { dialog.close(); } }] });
        }
        function RefreshWin() {
            location.href = location.href;
        }
        function CloseWin(data) {
            if (data == "1") {
                RefreshWin();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td width="16" class="title_lbg IE6png">
                </td>
                <td width="24" class="title_t IE6png">
                </td>
                <td width="750" class="title_libg IE6png">
                    更换列表
                </td>
                <td width="17" class="title_rbg IE6png">
                </td>
            </tr>
            <tr id="tbCorp" runat="server">
                <td class="border_lbg IE6png">
                    &nbsp;
                </td>
                <td colspan="2" style="padding-top: 16px; padding-left: 6px; padding-right: 6px;">
                    <div>
                        <div class="xian">
                            <div class="about_title">
                                更换列表</div>
                        </div>
                        <br />
                        <telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" AllowSorting="true"
                            CssClass="tab" AllowFilteringByColumn="false" CellSpacing="0" Culture="zh-CN"
                            GridLines="None" AllowPaging="true" AllowCustomPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource"
                            Width="100%" PageSize="20">
                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="EmpGuid" NoMasterRecordsText="暂无数据"
                                InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemDisplay="Top">
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="true">
                                </RowIndicatorColumn>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                                <PagerStyle AlwaysVisible="True" />
                                <CommandItemTemplate>
                                </CommandItemTemplate>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="QCTitle" HeaderText="期次" UniqueName="QCTitle"
                                        HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpName" HeaderText="已报名人员" UniqueName="EmpName"
                                        HeaderStyle-Width="13%" HeaderStyle-HorizontalAlign="Center">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="IDCard" HeaderText="身份证号" UniqueName="IDCard"
                                        HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="AfterName" HeaderText="已更换人员" UniqueName="AfterName"
                                        HeaderStyle-Width="13%" HeaderStyle-HorizontalAlign="Center">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Reason" HeaderText="更换原因" UniqueName="Reason"
                                        HeaderStyle-Width="25%" HeaderStyle-HorizontalAlign="Center">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="操作" HeaderStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <span style="text-align: center;"><a style="cursor: pointer; text-align: center;"
                                                onclick='ChangeEmp(<%#Eval("TreeId") %>,"<%#Eval("EmpName") %>","<%#Eval("EmpGuid").ToString() %>","<%#Eval("ID").ToString() %>");'
                                                class="xtbiao">更换人员</a></span>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true">
                                <Selecting AllowRowSelect="True"></Selecting>
                            </ClientSettings>
                            <PagerStyle AlwaysVisible="True" />
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                    </div>
                </td>
                <td class="border_rbg IE6png">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="border_lconer IE6png" headers="17">
                    &nbsp;
                </td>
                <td colspan="2" class="border_bottomli IE6png" height="17">
                    &nbsp;
                </td>
                <td class="border_rconer IE6png" headers="17">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div id="UDialog" style="margin: auto; width: 600px;">
        <telerik:RadAjaxLoadingPanel runat="server" ID="gridLoadingPanel">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="UserDialog" runat="server" Title="更换人员" Height="700px" Behaviors="Close"
                    Width="600px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                    Skin="WebBlue" VisibleStatusbar="False" CssClass="DialogCss">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    <asp:HiddenField ID="hidType" runat="server" />
    <asp:HiddenField ID="hidId" runat="server" />
    </form>
</body>
</html>
